package com.java.base.exercise.aysn;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author RenPu
 * @Date 2023/5/10 11:43
 * @Version 1.0
 * @Description:
 **/

public class MyScheduleCofig {


    @Autowired
    private ThreadPoolUtils threadPoolUtils;


    @Async("default")
    public String asyncMethod() {
        return "异步执行的方法体";
    }



    public static void main(String[] args) {
        MyScheduleCofig cofig = new MyScheduleCofig();
        cofig.asyncMethod();
    }







}
